-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Larg PR - Adds support for features #3 , #19 , and #20 #27
Conversation
Only compatible with semver at the moment Closes #19
This is a decent change. Now the CommitType enum is auto-generated via a macro. This macro also implements two helper methods, and one Trait. The helper methods return a Vec<'static str> of all "aliases" for specified variant if called like CommitType::Variant.aliases(). Or if called on the enum itself there the method returns ALL aliases such as CommitType::all_aliases(). The macro also implments the std::str::FromStr trait so you can parse from a string to a known enum type automatically. Say we defined a "feat" or "ft" alias of variant "Feature", if we had a string of "ft" or "feature" we could call some_str.parse::<CommitType>().unwrap() to get a CommitType::Feature, or if it failed to parse we get a CommitType::Unknown Closes #3
This PR also add minimal support for #20 The way it works is it looks for a [clog]
repository = "https://github.com/thoughtram/clog"
subtitle = "my super cool subtitle"
from-latest-tag = true Those are the only three options supported so far. All are optional, you can specify them all, or none of them. And anything you pass via the command line flags (such as It's pretty awesome now when I update my |
That's super cool work! I just tried it out and it's awesome. 👍 I also cutted a new release |
Btw, the "temporary files" thing is for vim I believe, if you're wondering. |
I'm quite liberal with putting things on the |
This PR adds the features of #3 and #19
Same as before, I'll wait until at least one other person takes a look at this before merging. The testing I did looked good, but it's always possible to miss something :)